package com.spring.security.core.validate.exception;


import org.springframework.security.core.AuthenticationException;

/**
 * @author seabed_moon
 */
public class ValidateCodeException extends AuthenticationException {


    /**
     *
     */
    private static final long serialVersionUID = -7285211528095468156L;

    private int code;

    /**
     * Constructs an {@code AuthenticationException} with the specified message and no
     * root cause.
     *
     * @param msg the detail message
     */
    public ValidateCodeException(String msg) {
        super(msg);
    }

    public ValidateCodeException(String msg, int code) {
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
